require('dotenv').config();

module.exports = {
  // 服务器配置
  port: process.env.PORT || 3002,
  nodeEnv: process.env.NODE_ENV || 'development',
  
  // 数据库配置
  database: {
    host: process.env.DB_HOST || 'localhost',
    port: process.env.DB_PORT || 3306,
    name: process.env.DB_NAME || 'nuxt3',
    user: process.env.DB_USER || 'root',
    password: process.env.DB_PASSWORD || 'zxy123'
  },
  
  // API配置
  api: {
    key: process.env.API_KEY || 'your-api-key-here'
  },
  
  // 日志配置
  log: {
    level: process.env.LOG_LEVEL || 'info'
  },
  
  // CORS配置
  cors: {
    origin: process.env.CORS_ORIGIN || '*',
    credentials: true
  }
}; 